package com.shop.item.api.model;

import com.shop.common.entity.item.ItemBase;
import com.shop.common.entity.item.ItemExt;

import java.util.Date;

public class Item extends ItemBase {
    /**
     * @Author zhoulk
     * @Description //商品扩展信息
     * @Date 17:17 2019/3/8
     *
     * @Param
     * @return
     * @errorCode //TODO
     **/
    private ItemExt itemExt;

    private Integer detailId;
    /**
     * 商品库存
     */
    private Integer stock;

    /**
     * 商品简介
     */
    private String intro;

    /**
     *
     */
    private String imgs;

    /**
     *
     */
    private String mainImg;

    /**
     *
     */
    private String reason;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     *
     */
    private String details;

    /**
     * 规格属性(json格式字符串)
     */
    private String specification;

    private String ctgName;

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getImgs() {
        return imgs;
    }

    public void setImgs(String imgs) {
        this.imgs = imgs;
    }

    public String getMainImg() {
        return mainImg;
    }

    public void setMainImg(String mainImg) {
        this.mainImg = mainImg;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    @Override
    public String getCtgName() {
        return ctgName;
    }

    @Override
    public void setCtgName(String ctgName) {
        this.ctgName = ctgName;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public ItemExt getItemExt() {
        return itemExt;
    }

    public void setItemExt(ItemExt itemExt) {
        this.itemExt = itemExt;
    }
}
